<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'centerheadimg.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
	body{
		margin:0px 0px;
		padding:0px 0px;
		width: 100%;
		height: 100%;
		background-color: #eee8aa;
	}
</style>
<script type="text/javascript">
	
function updateSub(){
  		var file = $("#file").val();
  		if(file!=""){
  			return true;
  		}
  		alert("文件不能为空!");
  	 	return false;
  	}

</script>
<script type="text/javascript" src="./js/jquery-1.8.2.js"></script>
  </head>
  
  <body>
   <p style="margin-top: 10px">可点击选择图片按钮修改:
   <div class="top" style="padding-left: 50px">
  	<img alt="首页" src="/wifiIMG/img/uersImg/headImg/MoRenHead/${moren}" height="50%" ><br/><br/>
	  		<form action="${pageContext.request.contextPath}/Guan/GuanLiCenter_updateMoRenHeadImg.action" method="post" 
	  			enctype="multipart/form-data" onsubmit="return updateSub()">
	  			<input type="hidden" name="path" id="patha${v.index}"  value="${r2}"> 
			  	<input type="file" name="file" style="margin-left: 30px;border: solid 1px #8fbc8f;" id="file"/>
			  	<input type="submit" value="保   存" style="padding-left: 25px;padding-right: 25px;">
		  	</form>
		  	</div>
  </body>
</html>
